package com.yuntuzhilian.chapter5;

/**
 * @author MrWang-shuizhishuiheshui
 * @description
 */
public class YinBei extends YueKeXia {
    private String yinBei;

    public YinBei() {
    }
    public YinBei(String name, int age, String smallLeg, String yinBei) {
        super(name, age, smallLeg);
        this.yinBei = yinBei;
    }

    public String getYinBei() {
        return yinBei;
    }
    public void setYinBei(String yinBei) {
        this.yinBei = yinBei;
    }

    /**
     * 抽象方法必须在子类重写
     * 除非子类也是抽象类,子子类重写
     */
    @Override
    public void show() {
        System.out.println("姓名:"+getName()+"年龄:"+getAge());
        System.out.println("腿:"+getSmallLeg()+"背部:"+getYinBei());
    }
}
